package com.youlai.boot.modules.area.model;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface AreaConverter {
    AreaForm toForm(Area entity);

    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    Area toEntity(AreaForm form);
}
